<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/login.css" />
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/adminPage.css" />
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/userPage.css" />
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/inbox.css" />
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/folders.css" />
	<link rel="stylesheet" type="text/css"
		href="resources/cssStyle/shadow.css" />
	<title><ui:insert name="title">Default title</ui:insert></title>
</h:head>
<h:body>

	<f:event listener="#{security.checkSupervisorCredentials}"
		type="preRenderView" />

	<!-- Marius CommentPopup  -->
	<h:panelGroup class="shadow"
		rendered="#{inboxController.popUpAdminInbox!=null}">
		<div class="shadowInbox">
			<h:form>
				
				<h1 class="shadowTitle">#{msg.inboxPopup}</h1>
				
				<h:inputTextarea disabled="true" style="color:black;"
					rendered="#{inboxController.currentContent!=null}"
					value="#{inboxController.currentContent}" class="inboxArea">
				</h:inputTextarea>
				<br/><br/>
				<h:commandButton action="#{inboxController.manageAccept}"
					
					class="inboxButton" value="#{msg.accept}"></h:commandButton>
				<h:commandButton action="#{inboxController.denyCurrentRow}"
					
					class="inboxButton" value="#{msg.deny}"></h:commandButton>
				<h:commandButton action="#{inboxController.popUpOK}"
					class="inboxButton" value="#{msg.cancel}"></h:commandButton>
			</h:form>
		</div>
	</h:panelGroup>


	<h:panelGroup class="shadow"
		rendered="#{messageController1.renderPopUp!=null}">

		<div class="shadowMessage">
			<br />
			<h1 class="shadowTitle">#{messageController1.renderPopUp}</h1>
			<br />

			<h:form>
				<h:commandButton class="selectRepositoryButton" value="Ok"
					action="#{messageController1.redirectPopUp}" />
			</h:form>
		</div>
	</h:panelGroup>
	<div class="login">
		<div id="header">
			<ui:insert name="header">
				<ui:include src="header.xhtml" />
			</ui:insert>
		</div>
		<div id="menu">
			<ui:insert name="menu">
				<ui:include src="menuSupervisor.xhtml" />
			</ui:insert>
		</div>
		<div id="content"
			style="bottom: 55px; top: 240px; position: absolute; width: 100%; overflow: auto;">
			<ui:insert name="content">
			</ui:insert>
		</div>
		<div id="footer">
			<ui:insert name="footer">
				<ui:include src="footer.xhtml" />
			</ui:insert>
		</div>
	</div>
</h:body>
</html>